package com.wanmait.schedule.service.impl;

import com.wanmait.schedule.entity.ClassesType;
import com.wanmait.schedule.mapper.ClassesTypeMapper;
import com.wanmait.schedule.service.ClassesTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 班级类型 服务实现类
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Service
public class ClassesTypeServiceImpl extends ServiceImpl<ClassesTypeMapper, ClassesType> implements ClassesTypeService {

    @Resource
    private ClassesTypeMapper classesTypeMapper;
    @Override
    public Boolean update(ClassesType classesType) {
        int i = classesTypeMapper.updateById(classesType);
        return null;
    }

    @Override
    public List<ClassesType> list() {
        return classesTypeMapper.list();
    }
}
